#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a = 40;
	int c = 212;
	int sum = 0;
	sum = (-8 + 22) * a - 10 + c/2;//106
	printf("%d", sum);

	return 0;
}